package com.wyk.Spring;

/**
 * @InterfaceName: BeanFactory
 * @Description: 单例工厂的顶层设计
 * @Author: 初久
 * @Date: 2022/7/3 14:33
 **/
public interface BeanFactory {

    /**
     * 根据beanName从IoC容器中获得一个实例Bean
     *
     * @param beanName
     * @return
     */
    <T> T getBean(String beanName) throws Exception;

    <T> T getBean(Class<T> beanClass) throws Exception;

}
